package cc.mycraft.events;


import org.bukkit.entity.Player;
import org.bukkit.event.Cancellable;
import org.bukkit.event.Event;
import org.bukkit.event.HandlerList;
import org.bukkit.inventory.ItemStack;


public final class PlayerThowArrowEvent extends Event implements Cancellable{
	
	private static final HandlerList handlers = new HandlerList();

	@Override
	public HandlerList getHandlers() {
		return handlers;
	}
	
	public static HandlerList getHandlerList() {
		return handlers;
	}
	
	private ItemStack item;
	private Player player;
	private boolean cancelled;
	
	public PlayerThowArrowEvent(ItemStack i,Player p) {
		this.player = p;
		this.item = i;
		this.cancelled = false;
	}
	public ItemStack getUsedItem() {
		return this.item;
	}
	public Player getPlayer() {
		return this.player;
	}

	public boolean isCancelled() {
		return this.cancelled;
	}
	public void setCancelled(boolean b) {
		this.cancelled = b;
	}
}
